General
The examples are for Visual Basic 6.0.
- ReadAndDisplayValue: The simplest form. Reads and displays an OPC item value. This is what you get if you follow the steps described in Quick Start for OPC Data Client-COM.
- SubscribeMultipleItems: Subscribes to multiple OPC-DA items, and displays the incoming changes in the list box.
- UADocExamples: Contains all VB 6.0 examples for OPC-UA that are given in the Reference documentation.
- UAReadAndDisplayValue: The simplest form for OPC-UA. Reads and displays an OPC-UA node value.
- WriteMultipleItemValues: Writes different values to multiple OPC Data Access items at once.
Visual Basic (VB 6.0) Development Specifics
Hint: If you need to pass an empty to a COM method or property (e.g. when calling an OPC UA method with no input arguments), use the Array()
function, with no argument, to create an empty array. Alternatively, create an (empty) ElasticVector object, and convert it to an array using its ToArray Method.
Examples on GitHub
See Also